package ModelLayer;



public class Offer
{
   
    private Product offerProduct;
    private Customer offerCustomer;
    private String offerName;
    private long offerId;
    private double amount;
    private String dateFrom;
    private String dateTill;

    
    public Offer(long offerId, String offerName, double amount, String dateFrom, String dateTill)
    {
      this.offerId = offerId;
      this.offerName = offerName;
      this.amount = amount;
      this.dateFrom = dateFrom;
      this.dateTill = dateTill;
    }

    public void setOfferName(String offerName)
    {
       this.offerName = offerName;
    }
    
    public void setOfferAmount(double amount)
    {
        this.amount = amount;
    }
    
    public void setDateFrom(String dateFrom)
    {
        this.dateFrom = dateFrom;
    }
    
    public void  setDateTill(String dateTill)
    {
        this.dateTill = dateTill;
    }
    
    private long getOfferId()
    {
        return offerId;
    }
    
    private String getOfferName()
    {
        return offerName;
    }
    
    private String getDateTill()
    {
        return dateTill;
    }
    
    private String getDateFrom()
    {
        return dateFrom;
    }
}
